<?php

namespace CMBUBank\UBank\Request\TransManager;

use CMBUBank\UBank\Request\UBankBaseRequest;
use CMBUBank\UBank\Response\TransManager\TransManagerSubunitControlResponse;
use CMBUBank\UBank\Response\TransManager\TransManagerSubunitQueryInfoResponse;

class TransManagerSubunitQueryInfoRequest extends UBankBaseRequest
{
    protected $code = 'NTDUMINF';

    protected $response = TransManagerSubunitQueryInfoResponse::class;

    protected $logTip = '详情查询';

    private $queryCode;

    public function generate(): array
    {
        return [
            'ntduminfx1' => [[
                'REQNBR' => $this->queryCode
            ]]
        ];
    }

    public function setQueryCode(string $queryCode): void
    {
        $this->queryCode = $queryCode;
    }
}